﻿
Sys_Info = function (id) {
   
    var Sys_InfoForm = Ext.create("Ext.form.Panel", {
        
        width: 600,
        height: 650,
        renderTo: "Sys_InfoWin",
        layout: "anchor",
        defaultType: "displayfield",
        labelWidth: 160,
        defaults: { labelAlign: 'right', anchor: "70%", msgTarget: "side" },
        buttonAlign: "center",
        bodyStyle: "padding:10px",
        items: [{
            xtype: 'displayfield',
            fieldLabel: '服务器计算机名',
            name: 'ServerName'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器IP地址',
            name: 'Ip'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器域名',
            name: 'Domain'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器端口',
            name: 'Port'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器IIS版本',
            name: 'IISVer'
        }, {
            xtype: 'displayfield',
            fieldLabel: '本文件所在文件夹',
            name: 'PhPath'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器操作系统',
            name: 'Operat'
        }, {
            xtype: 'displayfield',
            fieldLabel: '系统所在文件夹',
            name: 'SystemPath'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器脚本超时时间',
            name: 'TimeOut'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器的语言种类',
            name: 'Lan'
        }, {
            xtype: 'displayfield',
            fieldLabel: '.NET Framework 版本',
            name: 'AspnetVer'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器当前时间',
            name: 'CurrentTime'
        }, {
            xtype: 'displayfield',
            fieldLabel: '服务器上次启动到现在已运行',
            name: 'ServerLastStartToNow'
        }, {
            xtype: 'displayfield',
            fieldLabel: '逻辑驱动器',
            name: 'LogicDriver'
        }, {
            xtype: 'displayfield',
            fieldLabel: 'CPU 总数',
            name: 'CpuNum'
        }, {
            xtype: 'displayfield',
            fieldLabel: 'CPU 类型',
            name: 'CpuType'
        }, {
            xtype: 'displayfield',
            fieldLabel: '应用运行时间',
            name: 'AppRunTime'
        }, {
            xtype: 'displayfield',
            fieldLabel: '可用缓存大小',
            name: 'CacheMax'
        }, {
          
            xtype: 'displayfield',
            fieldLabel: '虚拟内存使用',
            name: 'AppRunVirtualMemony'
        }, {
            xtype: 'displayfield',
            fieldLabel: '当前进程使用内存',
            name: 'Memory'
        }, {
            xtype: 'displayfield',
            fieldLabel: '当前程序占用内存',
            name: 'MemoryPro'
        }, {
            xtype: 'displayfield',
            fieldLabel: '物理内存使用',
            name: 'AppRunMemony'
        }, {
            xtype: 'displayfield',
            fieldLabel: '当前Session数量',
            name: 'SessionNum'
        }, {
            xtype: 'displayfield',
            fieldLabel: '当前SessionID',
            name: 'Session'
        }, {
            xtype: 'displayfield',
            fieldLabel: '当前系统用户名',
            name: 'User'
        }
			]
    });

    

                //加载表单数据
                Sys_InfoForm.form.load(
                                {
                                    url: "/Manager/Sys_Info/List/",
                                    method: "get",
                                    success: function (form, action) {

                                    },
                                    failure: function (form, action) {
                                        Ext.Msg.alert("提示信息", "对不起加载数据失败!请联系管理员");
                                    }
                                }
                    );

            
        

    
   
}
Sys_Info();